package org.jrfe.scene.impl;

import org.jrfe.scene.QueryCal;


public enum MaskQueryType implements QueryCal{
	
	EQUAL{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return queryMaks == objectMask;
		}
	},
	NOT_EQUAL{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return queryMaks != objectMask;
		}
	},
	LESS{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return	queryMaks < objectMask;
		}
	},
	LESS_OR_EQUAL{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return queryMaks <= objectMask;
		}
	},
	GREATER{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return queryMaks > objectMask;
		}
	},
	GREATER_OR_EQUAL{
		@Override
		public boolean cals(int queryMaks,int objectMask) {
			return queryMaks >= objectMask;
		}
	};
	
	
}


